package com.guaju.yueshangclothing.utils;

import android.widget.Toast;

import com.guaju.yueshangclothing.global.MyApplication;

/**
 * Created by guaju on 2018/9/14.
 */

public class ToastUtil {
    static Toast toast;
    //手机自带吐司
    public static void show(String msg) {
        if (toast == null) {
            toast = Toast.makeText(MyApplication.getApp(), msg, Toast.LENGTH_SHORT);
        } else {
            toast.setText(msg);
        }
        toast.show();

    }
    //Todo 如需要请自定义吐司类型

}
